package com.zhy.deploy.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class DefaultConfig {

    @Bean
    @ConfigurationProperties(prefix = "deploy.git")
    public GitConfig defaultGitConfig(){
        return new GitConfig();
    }

    @Bean
    @ConfigurationProperties(prefix = "deploy.maven")
    public MavenConfig defaultMavenConfig(){
        return new MavenConfig();
    }

    @Bean
    @ConfigurationProperties(prefix = "deploy.tomcat")
    public TomcatConfig defaultTomcatConfig(){
        return new TomcatConfig();
    }
}
